<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<link rel="stylesheet" type="text/css" href="../../lib/leaflet/leaflet.css" />
		<link rel="stylesheet" type="text/css" href="../../css/map.css" />
		<script src="../../lib/leaflet/leaflet.js"></script>
		<script src="../../lib/plugins/leaflet.ChineseTmsProviders.js"></script>
		<script src="../../lib/plugins/leaflet-tilelayer-wmts-src.js"></script>

		<title>地图缩放等级改变监听</title>
	</head>

	<body>
		<div id="map"></div>
		<script src="../../js/common.js"></script>
		<script src="../../js/interface.js"></script>
		<script src="../../lib/plugins/leaflet-heat.js"></script>
		<script>
			var map = createMap("map");
			switchBaseLayer(map, '高德', '道路图');
			
			addZoomListner(map,function(zoom){
				console.log(zoom);
			});//添加地图缩放监听
			//removeZoomListner(map);//移除地图缩放监听
		</script>

	</body>

</html>